From: emellor@ewan Date: Thu, 22 Sep 2005 16:50:29 +0000 (+0100) Subject: Added diagnostic message when RuntimeError is raised inside XenStore.exists. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16780^2~3 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8259cb8841ae8e344089b552622a74ecc1116845;p=xen.git Added diagnostic message when RuntimeError is raised inside XenStore.exists. This is one of the first things to be used when xenstored starts up, so a corrupted filesystem may manifest itself here. Signed-off-by: Ewan Mellor --- diff --git a/tools/python/xen/xend/xenstore/xsnode.py b/tools/python/xen/xend/xenstore/xsnode.py index 469ef5f536..817cff757a 100644 --- a/tools/python/xen/xend/xenstore/xsnode.py +++ b/tools/python/xen/xend/xenstore/xsnode.py @@ -244,7 +244,9 @@ class XenStore: if ex.args[0] == errno.ENOENT: return False else: - raise + raise RuntimeError(ex.args[0], + ex.args[1] + + (', in exists(%s)' % (str(path)))) def mkdirs(self, path): if self.exists(path):